package com.company.backendproject.entity;

/**
 * @author : Real
 * @date : 2022/1/16 20:01
 * @description :
 */
public class Page {

    /**
     * 当前页面
     */
    private int current;

    /**
     * 显示上限数量
     */
    private int limit;

    /**
     * 数据总数，用于计算总页数
     */
    private int rows;

    public Page() {
    }

    public Page(int current, int limit, int rows) {
        this.current = current;
        this.limit = limit;
        this.rows = rows;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }
}
